import java.util.Random;

public class Test03 {
    public static void main(String[] args) {
        String str="abcdef";
        System.out.println(str);
        char[] arr=str.toCharArray();
        Random r=new Random();
        for (int i = 0; i <arr.length; i++) {
            int index1=r.nextInt(arr.length);
            int index2=r.nextInt(arr.length);
            char temp=arr[index1];
            arr[index1]=arr[index2];
            arr[index2]=temp;
        }
        String result=new String(arr);
        System.out.println(result);
    }
}
